package oracle.apps.financials.collection.po;


import android.content.Context;
import android.view.ViewGroup;

import com.cyrilmottier.android.greendroid.R;

public class ColorTextItem extends Item {

	public String leftText;
	public String centerText;
	public int centerTextColor;
	public String rightText;
	public boolean isShowDetailButton = true;

	public ColorTextItem() {
	}

	public ColorTextItem(String leftText, String centerText, String rightText, int centerTextColor, boolean isShowDetailButton) {
		this.leftText = leftText;
		this.centerText = centerText;
		this.rightText = rightText;
		this.centerTextColor = centerTextColor;
		this.isShowDetailButton = isShowDetailButton;
	}

	public ColorTextItem(String leftText, String centerText, String rightText, int centerTextColor) {
		this(leftText, centerText, rightText, centerTextColor, true);
	}

	@Override
	public ItemView newView(Context context, ViewGroup parent) {

		return createCellFromXml(context, R.layout.color_text_view, parent);
	}

	public String getLeftText() {
		return leftText;
	}

	public void setLeftText(String leftText) {
		this.leftText = leftText;
	}

	public String getCenterText() {
		return centerText;
	}

	public void setCenterText(String centerText) {
		this.centerText = centerText;
	}

	public String getRightText() {
		return rightText;
	}

	public void setRightText(String rightText) {
		this.rightText = rightText;
	}

}
